﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UAXInversionesWeb
{
    public partial class Logout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpContext.Current.Session["logueado"] = 0;
            HttpContext.Current.Session["userName"] = "";
            HttpContext.Current.Session["tipoUsuario"] = "";
            HttpContext.Current.Session.Abandon();
            Response.Write("<script>alert('Se ha cerrado la sesión!')</script>");
            Response.Redirect("Default.aspx");
        }
    }
}
